package com.alibaba.middleware.hsf.guide.api.model;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class OrderModel implements Serializable {
    
    private static final long     serialVersionUID = 3080743724007304951L;
    // 订单Id
    private Long                  id;
    // 买家MemberId
    private String                buyerMemberId;
    // 卖家MemberId
    private String                sellerMemberId;
    // 订单产品名称
    private String                productName;
    // 创建时间
    private Date                  gmtCreate;
    // 修改时间
    private Date                  gmtModified;
    // 总付款，单位分
    private Long                  totalPayment;
    // 折扣，单位分
    private Long                  discount;
    // 实付款，单位分（realPayment = totalPayment - discount）
    private Long                  realPayment;
    // 订单明细
    private List<OrderEntryModel> orderEntryList;
    
    // ------------------------Getters and Setters ------------------------//
    public Long getId() {
        return id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
    
    public String getBuyerMemberId() {
        return buyerMemberId;
    }
    
    public void setBuyerMemberId(String buyerMemberId) {
        this.buyerMemberId = buyerMemberId;
    }
    
    public String getSellerMemberId() {
        return sellerMemberId;
    }
    
    public void setSellerMemberId(String sellerMemberId) {
        this.sellerMemberId = sellerMemberId;
    }
    
    public String getProductName() {
        return productName;
    }
    
    public void setProductName(String productName) {
        this.productName = productName;
    }
    
    public Date getGmtCreate() {
        return gmtCreate;
    }
    
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
    
    public Date getGmtModified() {
        return gmtModified;
    }
    
    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }
    
    public Long getTotalPayment() {
        return totalPayment;
    }
    
    public void setTotalPayment(Long totalPayment) {
        this.totalPayment = totalPayment;
    }
    
    public Long getDiscount() {
        return discount;
    }
    
    public void setDiscount(Long discount) {
        this.discount = discount;
    }
    
    public Long getRealPayment() {
        return realPayment;
    }
    
    public void setRealPayment(Long realPayment) {
        this.realPayment = realPayment;
    }
    
    public List<OrderEntryModel> getOrderEntryList() {
        return orderEntryList;
    }
    
    public void setOrderEntryList(List<OrderEntryModel> orderEntryList) {
        this.orderEntryList = orderEntryList;
    }
    
    // ------------------------Getters and Setters ------------------------//
    
    @Override
    public String toString() {
        return "OrderModel [id=" + id + ", buyerMemberId=" + buyerMemberId + ", sellerMemberId=" + sellerMemberId
               + ", productName=" + productName + ", gmtCreate=" + gmtCreate + ", gmtModified=" + gmtModified
               + ", totalPayment=" + totalPayment + ", discount=" + discount + ", realPayment=" + realPayment
               + ", orderEntryList=" + orderEntryList + "]";
    }
    
}
